Optimal. Leaf size=447 \[ -\frac {2 \left (A b^2-a (b B-a C)\right ) \sqrt {\frac {b+a \cos (c+d x)}{a+b}} F\left (\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right ) \sqrt {\sec (c+d x)}}{3 a b \left (a^2-b^2\right ) d \sqrt {a+b \sec (c+d x)}}+\frac {2 C \sqrt {\frac {b+a \cos (c+d x)}{a+b}} \Pi \left (2;\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right ) \sqrt {\sec (c+d x)}}{b^2 d \sqrt {a+b \sec (c+d x)}}-\frac {2 \left (A b^4-4 a b^3 B-3 a^4 C+a^2 b^2 (3 A+7 C)\right ) E\left (\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right ) \sqrt {a+b \sec (c+d x)}}{3 a b^2 \left (a^2-b^2\right )^2 d \sqrt {\frac {b+a \cos (c+d x)}{a+b}} \sqrt {\sec (c+d x)}}-\frac {2 \left (A b^2-a (b B-a C)\right ) \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{3 b \left (a^2-b^2\right ) d (a+b \sec (c+d x))^{3/2}}+\frac {2 \left (A b^4-4 a b^3 B-3 a^4 C+a^2 b^2 (3 A+7 C)\right ) \sqrt {\sec (c+d x)} \sin (c+d x)}{3 b^2 \left (a^2-b^2\right )^2 d \sqrt {a+b \sec (c+d x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.97, antiderivative size = 447, normalized size of antiderivative = 1.00, number of steps
used = 13, number of rules used = 12, integrand size = 45, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.267, Rules used = {4183, 4193,
3944, 2886, 2884, 4120, 3941, 2734, 2732, 3943, 2742, 2740} \begin {gather*} -\frac {2 \sin (c+d x) \sec ^{\frac {3}{2}}(c+d x) \left (A b^2-a (b B-a C)\right )}{3 b d \left (a^2-b^2\right ) (a+b \sec (c+d x))^{3/2}}-\frac {2 \sqrt {\sec (c+d x)} \left (A b^2-a (b B-a C)\right ) \sqrt {\frac {a \cos (c+d x)+b}{a+b}} F\left (\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right )}{3 a b d \left (a^2-b^2\right ) \sqrt {a+b \sec (c+d x)}}+\frac {2 \sin (c+d x) \sqrt {\sec (c+d x)} \left (-3 a^4 C+a^2 b^2 (3 A+7 C)-4 a b^3 B+A b^4\right )}{3 b^2 d \left (a^2-b^2\right )^2 \sqrt {a+b \sec (c+d x)}}-\frac {2 \left (-3 a^4 C+a^2 b^2 (3 A+7 C)-4 a b^3 B+A b^4\right ) \sqrt {a+b \sec (c+d x)} E\left (\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right )}{3 a b^2 d \left (a^2-b^2\right )^2 \sqrt {\sec (c+d x)} \sqrt {\frac {a \cos (c+d x)+b}{a+b}}}+\frac {2 C \sqrt {\sec (c+d x)} \sqrt {\frac {a \cos (c+d x)+b}{a+b}} \Pi \left (2;\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right )}{b^2 d \sqrt {a+b \sec (c+d x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2732
Rule 2734
Rule 2740
Rule 2742
Rule 2884
Rule 2886
Rule 3941
Rule 3943
Rule 3944
Rule 4120
Rule 4183
Rule 4193
Rubi steps
\begin {align*} \int \frac {\sec ^{\frac {3}{2}}(c+d x) \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right )}{(a+b \sec (c+d x))^{5/2}} \, dx &=-\frac {2 \left (A b^2-a (b B-a C)\right ) \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{3 b \left (a^2-b^2\right ) d (a+b \sec (c+d x))^{3/2}}-\frac {2 \int \frac {\sqrt {\sec (c+d x)} \left (\frac {1}{2} \left (A b^2-a (b B-a C)\right )+\frac {3}{2} b (b B-a (A+C)) \sec (c+d x)-\frac {3}{2} \left (a^2-b^2\right ) C \sec ^2(c+d x)\right )}{(a+b \sec (c+d x))^{3/2}} \, dx}{3 b \left (a^2-b^2\right )}\\ &=-\frac {2 \left (A b^2-a (b B-a C)\right ) \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{3 b \left (a^2-b^2\right ) d (a+b \sec (c+d x))^{3/2}}+\frac {2 \left (A b^4-4 a b^3 B-3 a^4 C+a^2 b^2 (3 A+7 C)\right ) \sqrt {\sec (c+d x)} \sin (c+d x)}{3 b^2 \left (a^2-b^2\right )^2 d \sqrt {a+b \sec (c+d x)}}+\frac {4 \int \frac {\frac {1}{4} \left (-A b^4+4 a b^3 B+3 a^4 C-a^2 b^2 (3 A+7 C)\right )+\frac {1}{4} b \left (a^2 b B+3 b^3 B+2 a^3 C-2 a b^2 (2 A+3 C)\right ) \sec (c+d x)+\frac {3}{4} \left (a^2-b^2\right )^2 C \sec ^2(c+d x)}{\sqrt {\sec (c+d x)} \sqrt {a+b \sec (c+d x)}} \, dx}{3 b^2 \left (a^2-b^2\right )^2}\\ &=-\frac {2 \left (A b^2-a (b B-a C)\right ) \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{3 b \left (a^2-b^2\right ) d (a+b \sec (c+d x))^{3/2}}+\frac {2 \left (A b^4-4 a b^3 B-3 a^4 C+a^2 b^2 (3 A+7 C)\right ) \sqrt {\sec (c+d x)} \sin (c+d x)}{3 b^2 \left (a^2-b^2\right )^2 d \sqrt {a+b \sec (c+d x)}}+\frac {4 \int \frac {\frac {1}{4} \left (-A b^4+4 a b^3 B+3 a^4 C-a^2 b^2 (3 A+7 C)\right )+\frac {1}{4} b \left (a^2 b B+3 b^3 B+2 a^3 C-2 a b^2 (2 A+3 C)\right ) \sec (c+d x)}{\sqrt {\sec (c+d x)} \sqrt {a+b \sec (c+d x)}} \, dx}{3 b^2 \left (a^2-b^2\right )^2}+\frac {C \int \frac {\sec ^{\frac {3}{2}}(c+d x)}{\sqrt {a+b \sec (c+d x)}} \, dx}{b^2}\\ &=-\frac {2 \left (A b^2-a (b B-a C)\right ) \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{3 b \left (a^2-b^2\right ) d (a+b \sec (c+d x))^{3/2}}+\frac {2 \left (A b^4-4 a b^3 B-3 a^4 C+a^2 b^2 (3 A+7 C)\right ) \sqrt {\sec (c+d x)} \sin (c+d x)}{3 b^2 \left (a^2-b^2\right )^2 d \sqrt {a+b \sec (c+d x)}}-\frac {\left (A b^2-a b B+a^2 C\right ) \int \frac {\sqrt {\sec (c+d x)}}{\sqrt {a+b \sec (c+d x)}} \, dx}{3 a b \left (a^2-b^2\right )}-\frac {\left (A b^4-4 a b^3 B-3 a^4 C+a^2 b^2 (3 A+7 C)\right ) \int \frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {\sec (c+d x)}} \, dx}{3 a b^2 \left (a^2-b^2\right )^2}+\frac {\left (C \sqrt {b+a \cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\sec (c+d x)}{\sqrt {b+a \cos (c+d x)}} \, dx}{b^2 \sqrt {a+b \sec (c+d x)}}\\ &=-\frac {2 \left (A b^2-a (b B-a C)\right ) \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{3 b \left (a^2-b^2\right ) d (a+b \sec (c+d x))^{3/2}}+\frac {2 \left (A b^4-4 a b^3 B-3 a^4 C+a^2 b^2 (3 A+7 C)\right ) \sqrt {\sec (c+d x)} \sin (c+d x)}{3 b^2 \left (a^2-b^2\right )^2 d \sqrt {a+b \sec (c+d x)}}-\frac {\left (\left (A b^2-a b B+a^2 C\right ) \sqrt {b+a \cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {1}{\sqrt {b+a \cos (c+d x)}} \, dx}{3 a b \left (a^2-b^2\right ) \sqrt {a+b \sec (c+d x)}}+\frac {\left (C \sqrt {\frac {b+a \cos (c+d x)}{a+b}} \sqrt {\sec (c+d x)}\right ) \int \frac {\sec (c+d x)}{\sqrt {\frac {b}{a+b}+\frac {a \cos (c+d x)}{a+b}}} \, dx}{b^2 \sqrt {a+b \sec (c+d x)}}-\frac {\left (\left (A b^4-4 a b^3 B-3 a^4 C+a^2 b^2 (3 A+7 C)\right ) \sqrt {a+b \sec (c+d x)}\right ) \int \sqrt {b+a \cos (c+d x)} \, dx}{3 a b^2 \left (a^2-b^2\right )^2 \sqrt {b+a \cos (c+d x)} \sqrt {\sec (c+d x)}}\\ &=\frac {2 C \sqrt {\frac {b+a \cos (c+d x)}{a+b}} \Pi \left (2;\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right ) \sqrt {\sec (c+d x)}}{b^2 d \sqrt {a+b \sec (c+d x)}}-\frac {2 \left (A b^2-a (b B-a C)\right ) \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{3 b \left (a^2-b^2\right ) d (a+b \sec (c+d x))^{3/2}}+\frac {2 \left (A b^4-4 a b^3 B-3 a^4 C+a^2 b^2 (3 A+7 C)\right ) \sqrt {\sec (c+d x)} \sin (c+d x)}{3 b^2 \left (a^2-b^2\right )^2 d \sqrt {a+b \sec (c+d x)}}-\frac {\left (\left (A b^2-a b B+a^2 C\right ) \sqrt {\frac {b+a \cos (c+d x)}{a+b}} \sqrt {\sec (c+d x)}\right ) \int \frac {1}{\sqrt {\frac {b}{a+b}+\frac {a \cos (c+d x)}{a+b}}} \, dx}{3 a b \left (a^2-b^2\right ) \sqrt {a+b \sec (c+d x)}}-\frac {\left (\left (A b^4-4 a b^3 B-3 a^4 C+a^2 b^2 (3 A+7 C)\right ) \sqrt {a+b \sec (c+d x)}\right ) \int \sqrt {\frac {b}{a+b}+\frac {a \cos (c+d x)}{a+b}} \, dx}{3 a b^2 \left (a^2-b^2\right )^2 \sqrt {\frac {b+a \cos (c+d x)}{a+b}} \sqrt {\sec (c+d x)}}\\ &=-\frac {2 \left (A b^2-a (b B-a C)\right ) \sqrt {\frac {b+a \cos (c+d x)}{a+b}} F\left (\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right ) \sqrt {\sec (c+d x)}}{3 a b \left (a^2-b^2\right ) d \sqrt {a+b \sec (c+d x)}}+\frac {2 C \sqrt {\frac {b+a \cos (c+d x)}{a+b}} \Pi \left (2;\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right ) \sqrt {\sec (c+d x)}}{b^2 d \sqrt {a+b \sec (c+d x)}}-\frac {2 \left (A b^4-4 a b^3 B-3 a^4 C+a^2 b^2 (3 A+7 C)\right ) E\left (\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right ) \sqrt {a+b \sec (c+d x)}}{3 a b^2 \left (a^2-b^2\right )^2 d \sqrt {\frac {b+a \cos (c+d x)}{a+b}} \sqrt {\sec (c+d x)}}-\frac {2 \left (A b^2-a (b B-a C)\right ) \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{3 b \left (a^2-b^2\right ) d (a+b \sec (c+d x))^{3/2}}+\frac {2 \left (A b^4-4 a b^3 B-3 a^4 C+a^2 b^2 (3 A+7 C)\right ) \sqrt {\sec (c+d x)} \sin (c+d x)}{3 b^2 \left (a^2-b^2\right )^2 d \sqrt {a+b \sec (c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [F]
time = 96.14, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sec ^{\frac {3}{2}}(c+d x) \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right )}{(a+b \sec (c+d x))^{5/2}} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains complex when optimal does not.
time = 0.30, size = 7030, normalized size = 15.73
method | result | size |
default | \(\text {Expression too large to display}\) | \(7030\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: SystemError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\left (\frac {1}{\cos \left (c+d\,x\right )}\right )}^{3/2}\,\left (A+\frac {B}{\cos \left (c+d\,x\right )}+\frac {C}{{\cos \left (c+d\,x\right )}^2}\right )}{{\left (a+\frac {b}{\cos \left (c+d\,x\right )}\right )}^{5/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________